import {
  CHANGE_VALUE,
  CLICK_CHANGE,
  DELETE_ITEM,
  CHANGE_LOADING,
  CHANGE_MENUCOLSPAN,
  CHANGE_ROUTER,
  DELETE_ROUTER,
  CHANGE_ACTIVE_INDEX,
} from './actiontypes'

export const ACTION_CHANGE_VALUE = (value) => {
  return {
    type: CHANGE_VALUE,
    value,
  }
}

export const ACTION_CLICK_CHANGE = () => {
  return {
    type: CLICK_CHANGE,
  }
}

export const ACTION_DELETE_ITEM = (value) => {
  return {
    type: DELETE_ITEM,
    value,
  }
}

//正式的开始

export const ACTION_CHANGE_LOADING = (value) => {
  return {
    type: CHANGE_LOADING,
    value,
  }
}

export const ACTION_CHANGE_MENUCOLSPAN = (value) => {
  return {
    type: CHANGE_MENUCOLSPAN,
    value,
  }
}

export const ACTION_CHANGE_ROUTER = (value) => {
  return {
    type: CHANGE_ROUTER,
    value,
  }
}

export const ACTION_DELETE_ROUTER = (value) => {
  return {
    type: DELETE_ROUTER,
    value,
  }
}

export const ACTION_CHANGE_ACTIVE_INDEX = (value) => {
  return {
    type: CHANGE_ACTIVE_INDEX,
    value,
  }
}
